import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_shensu/page/state/android_game_state.dart';
import 'package:flutter_shensu/page/state/ios_game_state.dart';

class AllGamePage extends StatefulWidget {
  static final String sName = "allgame";

  @override
  State<StatefulWidget> createState() {
    if (Platform.isIOS) {
      //ios相关代码
      return IOSGamePageState();
    } else {
      //android相关代码
      return AndroidGamePageState();
    }
  }
}
